package cn.topcodes.tcsf.cms.domain.form;

import cn.topcodes.tcsf.admin.commons.domain.Idable;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * Production表单
 *
 * @author Yvan
 * @date 2018-02-09 10:46:47
 */
@Data
public class ProductionForm implements Idable {

    private Long id;

    @NotNull(message = "名称不能为空")
    @Length(min = 0, max = 100, message = "名称长度为0~100个字符")
    private String name;

    @NotNull(message = "分类不能为空")
    private Long catalogId;

    private String description;

    private String keyword;

    private String pictures;

    private Boolean isShow;

    private Boolean isTop;

}